import Vue from 'vue'
import Router from 'vue-router'

import index from '@/components/index'
import login from '@/components/pages/login'
import restingorder from '@/components/pages/restingorder'
import orderlist from '@/components/pages/orderlist'
import paymoney from '@/components/pages/paymoney'
Vue.use(Router)

export default new Router({
  routes: [
  	{
      path: '/pages/orderlist',
      name: 'orderlist',
      component: orderlist
    },
  	{
      path: '/pages/restingorder',
      name: 'restingorder',
      component: restingorder
    },
    {
      path: '/pages/paymoney',
      name: 'paymoney',
      component: paymoney
    },
    {
      path: '/pages/login',
      name: 'login',
      component: login
    },
    {
      path: '/',
      name: 'index',
      component: index
    }
  ]
})
